<?php

class gen_Model  extends CI_Model  {
	function __construct()
    {
        parent::__construct();
    }

    function getInfomation() {
    	if(!$this->db->database) {
    		show_error("Can not get database name");
    	}
    	$sql = 'SELECT TABLE_NAME, COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_SCHEMA = "'. $this->db->database .'"';
    	$result = $this->db->query($sql);
    	return $result->result_array();
    }
}
?>